package com.caipin.domain.camera;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:17
 * @Description: TODO
 */
public class SecurityEvent {
    private String deviceId;

    private int channelId;

    private String channelLocation;

    private String snapTime;

    private List<ObjectsBean> objects;

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public void setChannelId(int channelId) {
        this.channelId = channelId;
    }

    public void setChannelLocation(String channelLocation) {
        this.channelLocation = channelLocation;
    }

    public void setSnapTime(String snapTime) {
        this.snapTime = snapTime;
    }

    public void setObjects(List<ObjectsBean> objects) {
        this.objects = objects;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.camera.SecurityEvent))
            return false;
        com.caipin.domain.camera.SecurityEvent other = (com.caipin.domain.camera.SecurityEvent)o;
        if (!other.canEqual(this))
            return false;
        Object this$deviceId = getDeviceId(), other$deviceId = other.getDeviceId();
        if ((this$deviceId == null) ? (other$deviceId != null) : !this$deviceId.equals(other$deviceId))
            return false;
        if (getChannelId() != other.getChannelId())
            return false;
        Object this$channelLocation = getChannelLocation(), other$channelLocation = other.getChannelLocation();
        if ((this$channelLocation == null) ? (other$channelLocation != null) : !this$channelLocation.equals(other$channelLocation))
            return false;
        Object this$snapTime = getSnapTime(), other$snapTime = other.getSnapTime();
        if ((this$snapTime == null) ? (other$snapTime != null) : !this$snapTime.equals(other$snapTime))
            return false;
        Object<ObjectsBean> this$objects = (Object<ObjectsBean>)getObjects(), other$objects = (Object<ObjectsBean>)other.getObjects();
        return !((this$objects == null) ? (other$objects != null) : !this$objects.equals(other$objects));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.camera.SecurityEvent;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $deviceId = getDeviceId();
        result = result * 59 + (($deviceId == null) ? 43 : $deviceId.hashCode());
        result = result * 59 + getChannelId();
        Object $channelLocation = getChannelLocation();
        result = result * 59 + (($channelLocation == null) ? 43 : $channelLocation.hashCode());
        Object $snapTime = getSnapTime();
        result = result * 59 + (($snapTime == null) ? 43 : $snapTime.hashCode());
        Object<ObjectsBean> $objects = (Object<ObjectsBean>)getObjects();
        return result * 59 + (($objects == null) ? 43 : $objects.hashCode());
    }

    public String toString() {
        return "SecurityEvent(deviceId=" + getDeviceId() + ", channelId=" + getChannelId() + ", channelLocation=" + getChannelLocation() + ", snapTime=" + getSnapTime() + ", objects=" + getObjects() + ")";
    }

    public String getDeviceId() {
        return this.deviceId;
    }

    public int getChannelId() {
        return this.channelId;
    }

    public String getChannelLocation() {
        return this.channelLocation;
    }

    public String getSnapTime() {
        return this.snapTime;
    }

    public List<ObjectsBean> getObjects() {
        return this.objects;
    }
}

